package com.lorizz.picpub.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public interface SearchController {
	
	@RequestMapping(value = "/search", method = RequestMethod.GET)
	String search(Model model);
	
	@Transactional
	@RequestMapping(value = "/search", method = RequestMethod.POST)
	String search(@RequestParam("search") String searchString, Model model);
	
}
